from rest_framework import serializers
from .models import CateModel, GoodsModel


class CateModelSerializer(serializers.ModelSerializer):
    class Meta:
        model = CateModel
        fields = '__all__'


class GoodsModelserializer(serializers.ModelSerializer):
    class Meta:
        model = GoodsModel
        fields = '__all__'
